import requests # library to handle requests # !pip install pillow from PIL import Image url = 'https://flyinglocksmiths.com/app/uploads/houston-4096x2659.jpeg' im = Image.open(requests.get(url, stream=True).raw) im